This is an example of the basketball game that you will make today!

  • Click Run to start the game.
  • Use the left arrow key and down arrow key to set-up your shot.
  • Use the space bar to shoot the ball. How many points can you get in one shot?

To try again, click the Run button!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)